package routers

import (
	"github.com/gin-gonic/gin"
	"reggie/middleware"
)

func RouterInit(engine *gin.Engine)  {
	v1 := engine.Group("/v1")
	TestRouter(v1)

	v1Employee := engine.Group("/v1/employee")
	v1Employee.Use(middleware.AuthWithLogin()) // 使用中间件
	EmployeeRouter(v1Employee)
}